package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.query.QueryObject;
import cn.wolfcode.luowowo.common.query.TravelQueryObject;
import cn.wolfcode.luowowo.scenic.domain.ScenicDetail;import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    List<Destination> selectForList(QueryObject qo);

    int updateByPrimaryKey(Destination record);

    List<Destination> selectByIds(Long[] refIds);

    List<Destination> selectHotByRegionId(Long regionId);

    List<Destination> selectProvinces();

    List<Destination> listByUserFavor(TravelQueryObject qo);

    List<Destination> selectInThemeIds(@Param("monthRefIds") Long[] monthRefIds,
                                       @Param("themeRefIds") Long[] themeRefIds,
                                       @Param("dayRefIds") Long[] dayRefIds);

    List<Destination> selectByGuangDongR10();


    List<Destination> selectIsHot();

    Destination get(String destId);

    ScenicDetail selectScenicDetailsTop3ByDestId(Long destId);

    Destination listByParentId(Long parentId);
}